using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace VoteSystem.Model.Models.Mapping
{
    public class T_ThumbUpLogMap : EntityTypeConfiguration<T_ThumbUpLog>
    {
        public T_ThumbUpLogMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            this.Property(t => t.IsRecharge)
                .HasMaxLength(200);

            // Table & Column Mappings
            this.ToTable("T_ThumbUpLog");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.CompetitorID).HasColumnName("CompetitorID");
            this.Property(t => t.ThumbUpTime).HasColumnName("ThumbUpTime");
            this.Property(t => t.ThumbUpID).HasColumnName("ThumbUpID");
            this.Property(t => t.ThumbUpNum).HasColumnName("ThumbUpNum");
            this.Property(t => t.IsRecharge).HasColumnName("IsRecharge");
            this.Property(t => t.PresentID).HasColumnName("PresentID");
            this.Property(t => t.PresentNum).HasColumnName("PresentNum");
        }
    }
}
